const Mock = require('./mock');

module.exports = {
    lintOnSave: false,
    runtimeCompiler: true,
    productionSourceMap: false,
    devServer: {
        disableHostCheck: true,
        before(app) {
            Mock.init(app);
        },
        proxy: {
            '/api': {
                target: 'http://127.0.0.1:8080',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '',
                },
            },
        },
    },
    transpileDependencies: [
        '@v2coding/elements',
    ]
};
